package com.cfh.microserviceconsumermovie.fallbackconfig;

import com.cfh.microserviceapi.domain.User;
import com.cfh.microserviceconsumermovie.service.UserFeignClient;

/**
 * 用户降级
 *
 * @author chenfh
 * @date 2019/7/18
 */
//@Component
public class FeignClientFallback implements UserFeignClient {
    @Override
    public User findById(Long id) {
        User user = new User();
        user.setId(-1L);
        user.setName("默认用户a");
        return user;
    }
}
